-- GENERATED SPELL FOR [Thunderhead] --


function spell0_3239(pUnit, Event) --@Lizard Bolt,n/a--
pUnit:FullCastSpellOnTarget(5401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3239', 2000, 1)
end

function Sorts_3239(pUnit, Event)
local choix_sorts_3239 = math.random(0, 0)
if choix_sorts_3239 == 0 then
pUnit:RegisterEvent('spell0_3239', 1, 1)
end
end

function mob3239_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3239', math.random(1500, 3000), 1)
end

function mob3239_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3239_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3239_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3239, 1, 'mob3239_Action')
RegisterUnitEvent(3239, 2, 'mob3239_Leave')
RegisterUnitEvent(3239, 3, 'mob3239_Kill')
RegisterUnitEvent(3239, 4, 'mob3239_Die')
